package com.example.a2209_mianshi.http.interceptor

import com.example.a2209_mianshi.mmkv.AuthMMKV
import okhttp3.Interceptor
import okhttp3.Response

class TokenInterceptor : Interceptor {
    override fun intercept(chain: Interceptor.Chain): Response {
        val token = chain.request().newBuilder().addHeader("token",AuthMMKV.accessToken).build()
        return chain.proceed(token)
    }
}